import request from '../request/request'
export function postLogin(params) {
  return request({
    url: '/login',
    data: params,
    method: 'post'
  })
}
export function getCode(params) {
  return request({
    url: '/code',
    header: {
      'content-type': 'application/json'
    },
    data: params,
    method: 'get'
  })
}